import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  categoryName: [
    { required: true, message: "请输入标签分类", trigger: "blur" }
  ],
  sort: [{ required: true, message: "请输入标签分类排序", trigger: "blur" }],
  labelName: [{ required: true, message: "请输入标签名称", trigger: "blur" }],
  categoryId: [{ required: true, message: "请选择标签分类", trigger: "change" }]
});
